From 9db0eab9c516d6220a21b0111da54b2c366a13d8 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 11 Nov 2024 11:22:15 +0100 Subject: [PATCH] keepalived: enable reproducible-build Before keepalived version '2.3.0' the compilation was not reproducable because the compile date and other information has been added to the binary. Starting with version '2.3.0', there is a new compilation option '--enable-reproducible-build' that makes the binary reproducible. The data that prevented this has been moved to a separate file, '/etc/keepalived/keepalived.config-opts'. This commit enables the reproducable build. [1] https://github.com/acassen/keepalived/commit/30d2f759783e769c27974d22bab88f7e82dfcdf9 Signed-off-by: Florian Eckert --- net/keepalived/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index d9f23d8525..95e10dfd31 100644 --- a/net/keepalived/Makefile +++ b/net/keepalived/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=keepalived PKG_VERSION:=2.3.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.keepalived.org/software @@ -84,6 +84,7 @@ endef CONFIGURE_ARGS+= \ --enable-json \ + --enable-reproducible-build \ --with-init=SYSV \ --disable-track-process \ --runstatedir="/var/run" @@ -216,6 +217,8 @@ endif $(INSTALL_DIR) $(1)/etc/keepalived $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf.sample \ $(1)/etc/keepalived/keepalived.conf + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.config-opts \ + $(1)/etc/keepalived/ $(INSTALL_DIR) $(1)/etc/uci-defaults $(INSTALL_BIN) ./files/etc/uci-defaults/keepalived \ -- 2.30.2